Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |from_number_f64

json/value::|from_number_f64


Usage

|from_number_f64<F>(value, replacement)

Generics

◻ F: ToF64

Parameters

↳ value: F
↳ replacement: Json (json::Json)

Return

Json


Convert an f64-convertible value into a JSON number, using replacement if the value is infinite or NaN.

⚠️ Infinite and NaN values are not valid JSON; replacement must itself be a valid JSON value.